﻿using System;
using System.Runtime.Serialization;

namespace NCMIS.ObjectModel.MetaData
{
    /// <summary>
    /// Specifies what the versioing state of the newly-created object must be.
    /// </summary>
    [DataContract(Namespace = CmisNs.Cmis)]
    public enum VersioningState
    {
        /// <summary>
        /// The document MUST be created as a major version.
        /// </summary>
        [EnumMember(Value = "major")]
        Major,

        /// <summary>
        /// The document must be created as a minor version.
        /// </summary>
        [EnumMember(Value = "minor")]
        Minor,

        /// <summary>
        /// The document must be created as a non-versionable document.
        /// </summary>
        [EnumMember(Value = "none")]
        None,

        /// <summary>
        ///  The document must be created in the checked-out state.
        /// </summary>
        [EnumMember(Value = "checkedout")]
        Checkedout,
    }
}
